<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <!-- 52studyit.com -->
  <!-- 表示将字符串重复多少次 -->
  <script>
    "use strict";
    let i = "string".repeat(3);
    console.log(i);

    /* 
      Object.assign() 方法用于将所有可枚举的属性的值从一个或多个源对象复制到目标对象。
    */
    {
      let str = {
        a: "1",
        b: "c"
      };
      let age = ["你", "我", "他"];

      let obj = Object.assign(str, age);
      console.dir(JSON.stringify(obj, null, 2));
    }
  </script>
</body>

</html>